package com.hft.biz.Vo;

import com.hft.utils.DateUtils;

public class UrlVo {

	private Integer urlId;
	private String urlShort;
	private String urlSource;
	private Integer accessCounts;
	private String createDate;
	private String createTime;
	private String lastAccessTime;
	
	

	public Integer getAccessCounts() {
		return accessCounts;
	}

	public String getCreateDate() {
		return createDate;
	}

	public String getCreateTime() {
		return createTime;
	}

	public String getLastAccessTime() {
		return lastAccessTime;
	}

	public Integer getUrlId() {
		return urlId;
	}

	public String getUrlShort() {
		return urlShort;
	}

	public String getUrlSource() {
		return urlSource;
	}

	public void setAccessCounts(Integer accessCounts) {
		this.accessCounts = accessCounts;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public void setLastAccessTime(String lastAccessTime) {
		this.lastAccessTime = lastAccessTime;
	}

	public void setUrlId(Integer urlId) {
		this.urlId = urlId;
	}

	public void setUrlShort(String urlShort) {
		this.urlShort = urlShort;
	}

	public void setUrlSource(String urlSource) {
		this.urlSource = urlSource;
	}

	/**
	 * 初始化一个url插值对象
	 * 
	 * @param urlSource
	 */
	public UrlVo(String urlSource) {
		this.urlSource = urlSource;
		this.urlShort = null;
		this.accessCounts = 1;
		this.createDate = DateUtils.getCurrentDate();
		this.createTime = DateUtils.getCurrentLongTime();
		this.lastAccessTime = this.getCreateDate() + " " + this.getCreateTime();
	}

	public UrlVo() {
		super();
	}
}
